<template>
    <div class="product_selection">
        <div class="page_img"></div>
        <div class="header">
            <van-nav-bar title="审批数据" left-arrow @click-left="navLeftClick" />
        </div>
        <div class="content">
            <div class="content_items" v-for="(item, index) in navList" :key="index">
                <div class="content_title">
                    <div class="line"></div>
                    {{ item.title }}
                </div>
                <div class="content_page" v-for="(it, ind) in item.children" :key="ind" @click="routerPush(it.values, it.name)">
                    <img :src="it.img" alt="">
                    <div class="content_children">
                        <div>{{ it.name }}</div>
                        <div class="des">{{ it.des }}</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import { useRouter } from 'vue-router'
const icon_rukushenpi = new URL("@/assets/productHome/icon_rukushenpi.png", import.meta.url).href;
const icon_bianjiajieshou = new URL("@/assets/productHome/icon_bianjiajieshou.png", import.meta.url).href;
const icon_buyangyaoyueyi = new URL("@/assets/productHome/icon_buyangyaoyueyi.png", import.meta.url).href;
const router = useRouter()
const navList = ref([
    {
        title: '研发审批', children: [
            { name: '入库审批', values: 0, des: '资质与价格', img: icon_rukushenpi },
            { name: '变价接收', values: 1, des: '价格复核', img: icon_bianjiajieshou }]
    },
    {
        title: '运营审批', children: [
            { name: '补样邀约', values: 2, des: '供销合同审批', img: icon_buyangyaoyueyi },]
    },
])

// 头部导航点击事件
const navLeftClick = () => {
    router.push('/productHome/productMine')
}
// 导航点击事件
const routerPush = (values: number,name: string) =>{
    router.push({
        path: '/examineApproveDetail',
        query:{
            navListId: values,
            name: name
        }
    })
}



</script>
<script lang="ts">
export default { name: 'ExamineApprove' }
</script>
<style lang="less" scoped>
:deep(.van-nav-bar) {
    background: none !important;
}

:deep(.van-nav-bar__content) {
    background: none !important;
}

:deep(.van-hairline--bottom:after) {
    border: none !important;
}

.product_selection {
    width: 100%;
    height: 100vh;
    background-color: #fff;
    background: url("@/assets/newui/productList/icon_shangpinbeijing@2x.png");
    background-size: 100%;
    background-repeat: no-repeat;
    display: flex;
    flex-flow: column;
    position: relative;

    .page_img {
        background: url("@/assets/newui/productList/icon_shenpitu@2x.png");
        background-size: 100% 100%;
        position: absolute;
        width: 60px;
        height: 60px;
        top: 44px;
        right: 63px;

    }

    .header {
        filter: blur(0px);
        height: 90px;
        padding-top: 44px;
        box-sizing: border-box;
        width: 100%;
        position: relative;
        z-index: 6003;

        :deep(.van-icon-arrow-left) {
            color: #1a1b1c !important;
        }

        :deep(.van-nav-bar__title) {
            color: #1a1b1c !important;
            font-size: 18px !important;
            font-weight: 600 !important;
        }

        :deep(.van-nav-bar) {
            background: none !important;

            &::after {
                display: none !important;
            }
        }

        :deep(.van-nav-bar__content) {
            background-color: transparent !important;
        }
    }

    .content {
        width: 100%;
        flex: 1;
        background: #F6FAFF;
        border-radius: 15px 15px 0px 0px;
        box-sizing: border-box;
        padding: 15px;

        .content_items {
            .content_title {
                display: flex;
                align-items: center;
                font-weight: 500;
                font-size: 16px;
                color: #1A1B1C;

                .line {
                    width: 2px;
                    height: 16px;
                    background: #0094FF;
                    border-radius: 1px;
                    margin-right: 5px;
                }
            }

            .content_page {
                margin-top: 10px;
                margin-bottom: 10px;
                width: 100%;
                height: 74px;
                background: #FFFFFF;
                border-radius: 5px;
                box-sizing: border-box;
                padding: 15px;
                display: flex;
                align-items: center;

                img {
                    width: 44px;
                    height: 44px;
                    display: block;
                }

                .content_children {
                    margin-left: 20px;
                    font-weight: 500;
                    font-size: 16px;
                    color: #1A1B1C;

                    .des {
                        margin-top: 8px;
                        font-weight: 400;
                        font-size: 14px;
                        color: #8492AD;
                    }
                }
            }
        }

    }

}
</style>